#include<stdio.h>
int main()
{
    int n,i ,x,flag=1;
    
        for (x=6;flag;n++)
        {
            for(x=n,i&&flag;i<=5;i++)
            if((x-1)%5==0)x=4*(x-1)/5;
            else flag=0;
            if(flag)break;
            else flag=1;
            

        }
    printf("Total unmber of fish catched =%d\n",n);

}
